#include <QtScript>
#include <QyEditorBase>
#include <QyScript>

#include "QySciEditConfigurator.h"

QySciEditConfigurator::QySciEditConfigurator( QObject * parent ) : QObject(parent) {
}

QObject * QySciEditConfigurator::sciEdit() {

	return this;
}

void QySciEditConfigurator::applySettings( const QScriptValue & value ) {

	QMap<QString,QVariant> propertyMap;

	QyScript::generatePropertyMap( value, "", propertyMap );

	QyEditorBase::setSciEditConfig(propertyMap);

}
